const mysql = require('mysql')
//建立连接池
const db = mysql.createPool({
  host: '127.0.0.1',
  user: 'root',
  password: '',
  database: 'sports',
  //设置时区
  timezone: "08:00",
  port:'3306'
})
module.exports = db